<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动画效果测试</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        @keyframes move {
            0%{
                transform: translate(0,0);
            }

            25%{
                transform: translate(1000px,0);
            }

            50%{
                transform: translate(1000px,500px);
            }

            75%{
                transform: translate(0px,500px);
            }

            100%{
                transform: translate(0,0);
            }
        }

        .b1{
            width: 50px;
            height: 50px;
            background-color: pink;
            animation-name: move;
            animation-duration: 10s;
            animation-iteration-count: infinite;
        }
    </style>
</head>
<body>
<div class="b1">

</div>
</body>
</html>